package com.itheima.duotai;

public class TestDemo {
    public static void main(String[] args) {
        Animal wc = new Dog();
        Animal jf = new Cat();
        feedAnimal(wc);
        feedAnimal(jf);
    }
    public static void feedAnimal(Animal an){
        System.out.println("qia  fan.");
        an.eat();
    }
}
